using System;

namespace RockHopper.Common.Model
{
    public class RepetitionIntensityCalculator
    {
        public double TwoHundred(double vdot)
        {
            return 22.768*Math.Pow(vdot, -0.885);
        }

        public double FourHundred(double vdot)
        {
            return 44.324*Math.Pow(vdot, -0.873);
        }
        
        public double EightHundred(double vdot)
        {
            var value = 90.827*Math.Pow(vdot, -0.878);

            if (value > 2.5) value = 0;

            return value;
        }
    }
}